package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HatchetBusheetPermissionMapper;
import com.ruoyi.system.domain.HatchetBusheetPermission;
import com.ruoyi.system.service.IHatchetBusheetPermissionService;
import com.ruoyi.common.support.Convert;

/**
 * 用户操作权限 服务层实现
 * 
 * @author ruoyi
 * @date 2019-03-14
 */
@Service
public class HatchetBusheetPermissionServiceImpl implements IHatchetBusheetPermissionService 
{
	@Autowired
	private HatchetBusheetPermissionMapper hatchetBusheetPermissionMapper;

	/**
     * 查询用户操作权限信息
     * 
     * @param id 用户操作权限ID
     * @return 用户操作权限信息
     */
    @Override
	public HatchetBusheetPermission selectHatchetBusheetPermissionById(String id)
	{
	    return hatchetBusheetPermissionMapper.selectHatchetBusheetPermissionById(id);
	}
	
	/**
     * 查询用户操作权限列表
     * 
     * @param hatchetBusheetPermission 用户操作权限信息
     * @return 用户操作权限集合
     */
	@Override
	public List<HatchetBusheetPermission> selectHatchetBusheetPermissionList(HatchetBusheetPermission hatchetBusheetPermission)
	{
	    return hatchetBusheetPermissionMapper.selectHatchetBusheetPermissionList(hatchetBusheetPermission);
	}
	
    /**
     * 新增用户操作权限
     * 
     * @param hatchetBusheetPermission 用户操作权限信息
     * @return 结果
     */
	@Override
	public int insertHatchetBusheetPermission(HatchetBusheetPermission hatchetBusheetPermission)
	{
	    return hatchetBusheetPermissionMapper.insertHatchetBusheetPermission(hatchetBusheetPermission);
	}
	
	/**
     * 修改用户操作权限
     * 
     * @param hatchetBusheetPermission 用户操作权限信息
     * @return 结果
     */
	@Override
	public int updateHatchetBusheetPermission(HatchetBusheetPermission hatchetBusheetPermission)
	{
	    return hatchetBusheetPermissionMapper.updateHatchetBusheetPermission(hatchetBusheetPermission);
	}

	/**
     * 删除用户操作权限对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteHatchetBusheetPermissionByIds(String ids)
	{
		return hatchetBusheetPermissionMapper.deleteHatchetBusheetPermissionByIds(Convert.toStrArray(ids));
	}
	
}
